<!DOCTYPE html>
<html lang="<?php echo Configure::read('cfg.website-language');?>">
<head>
<meta charset="UTF-8" />
<title><?php echo (isset($title_for_layout) && !empty($title_for_layout)) ? $title_for_layout : Configure::read('cfg.homepage_title'); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
	<?php		
		echo $this->Html->meta('keywords',(isset($keywords))?$keywords:Configure::read('cfg.homepage_keywords'));
		echo $this->Html->meta('description',(isset($description))?$description:Configure::read('cfg.homepage_description'));
		echo (Configure::read('cfg.CustomMetaTags') == 'null') ? '' : Configure::read('cfg.CustomMetaTags'); // dodatkowe meta instalowane w Configurations
		
		echo $this->Html->meta('icon');
		
		echo $this->Html->css(array(
				'main',
				'superfish',
				));
		if($this->layout == 'panel') echo $this->Html->css(array('cake.generic'),null,array('inline'=>true));
		
		echo $this->Html->script(array( 
			'jquery-1.6.4.min'
		),$options = array('allowCache'=>false,'safe'=>false,'inline'=>true));
		
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	<link href='http://fonts.googleapis.com/css?family=Anaheim&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css'>
	<?php echo Configure::read('cfg.GoogleAnalyticsScript'); ?>
</head>
<body>
	
	<?php 
		echo $this->Session->flash();
		echo $this->Session->flash('auth');
		echo $this->Session->flash('email');
	?>
	
	<?php echo $this->fetch('content'); ?>
	<?php 
		$dump = $this->element('sql_dump'); 
		if(!empty($dump)){			
			echo $dump;
		}
	?>
</body>
</html>
